<%@ page import="com.yigang.utils.UserConst" %>
<%@ page import="com.yigang.entity.User" %>
<%@ page import="com.alibaba.fastjson.JSON" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ include file="/WEB-INF/page/include/taglib.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%

    Object attribute = session.getAttribute(UserConst.LOGIN_USER_INFO);
    User user = null;
    if (null != attribute) {
        user = JSON.parseObject((String) attribute, User.class);
    }
%>
</head>
<body>
<link href="${ctx}/css/wharf.2016071901.css" rel="stylesheet"
	type="text/css">
<link href="${ctx}/css/index.8431866.css" rel="stylesheet"
	type="text/css">
</head>
<script>
	var ctx = "${ctx}";
</script>
	<link href="${ctx}/css/common.9b786ce.css" rel="stylesheet"
		type="text/css">
	<link href="${ctx}/css/topbar.201a877.css" rel="stylesheet"
		type="text/css">

	<div class="topbar global-wrap">
		<div class="inner">
			<div class="topnar-fl">
				<a href="/">Hi，欢迎来到洋码头！</a> <span class="user-type"
					style="padding-left: 10px; display: inline-block;"> <a
					href="//seller.ymatou.com/Seller" target="_blank">我是买手</a>
				</span>
			</div>
			<ul class="nav topbar-fr">

			       <c:if test="<%=user == null%>">
                <li class="nav-item"><a href="${ctx}/jsp/userLogin.jsp">
                    <span class="title"
                          target="_blank">登录</span></a></li>
                <li class="nav-item"><a href="${ctx}/jsp/user/registerUser.jsp"><span
                        class="title" target="_blank">注册</span></a></li>
            </c:if>
            <c:if test="<%=user != null%>">
                <li class="nav-item"><a href=""><span class="title" id="username"
                                                      target="_blank"><%=user.getUsername()%> </span></a></li>
            </c:if>

				<li class="nav-item"><a href="${ctx}/cart/getAllShoppingcart"
					target="_blank"><span class="title">购物车</span></a></li>
				<li class="nav-item"><a href="${ctx }/my/MyTheorder"
					target="_blank"><span class="title">我的订单</span></a></li>
				<li class="nav-item"><a href="${ctx}/my/Mycenter"
					class="downmenu" target="_blank"><span class="title">个人中心</span>
						<!--<i class="arrow-bt"></i>--></a></li>
				<li class="nav-item" style="margin-left: -10px;"><a
					href="/home/rule" target="_blank"><span class="title">规则&amp;公告</span></a>
				</li>
				<!--<li class="nav-item">-->
				<!--<a href="http://evt.ymatou.com/activity_3135_pc?app_banner=home_page" target="_blank"><span class="title">手机洋码头</span></a>-->
				<!--</li>-->
			</ul>
		</div>
	</div>

	<div class="rightbar">
		<ul class="rightbar-inner" style="padding: 270px 0 0;">
			<li class="item user"><a href="${ctx}/my/Mycenter"
				target="_blank" title="我"><i class="rightbar-icon rti-user"></i></a>
			</li>
			<li class="item"><a href="${ctx}/cart/getAllShoppingcart"
				style="padding-bottom: 2px;" target="_blank" title="购物车"> <i
					class="rightbar-icon rti-cart"></i><span class="title">购<br>物<br>车
				</span> <em class="tips" style="display: none;">2</em>

			</a></li>
			<li class="item"><a style="padding-bottom: 2px;"
				onmouseover="$(&quot;#qrcodeContainer&quot;).show();"
				onmouseout="$(&quot;#qrcodeContainer&quot;).hide();" title="二维码"><i
					class="rightbar-icon rti-code"></i></a>
				<div id="qrcodeContainer"
					style="display: none; position: absolute; top: 0; left: -102px; z-index: 1; width: 102px; height: 126px; background: #383838;">
					<img
						src="//pic1.ymatou.com/G02/M02/FB/5C/CgvUBFht9-CADvH8AAAW6VtgvkI439_62_63_w_o.png"
						title="洋码头二维码"
						style="width: 62px; height: 63px; display: block; margin: 10px auto;">
					<span>下载APP领取<br>260元新人礼包
					</span>
				</div></li>
			<li class="item"><a style="padding-bottom: 2px;"
				href="javascript:void(0)"
				onclick="javascript:document.documentElement.scrollTop = document.body.scrollTop =0"
				title="置顶"><i class="rightbar-icon rti-top"></i><span
					class="title">TOP</span></a></li>
		</ul>
	</div>
</body>
</html>